<!doctype html>
<html lang="zh-Hans">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="assets/css/bootstrap.min.css" >
    <link rel="stylesheet" href="assets/css/fontawesome.min.css" >
    <link rel="stylesheet" href="assets/plugins/overlayscrollbars/css/OverlayScrollbars.min.css">
    <link rel="stylesheet" href="assets/plugins/daterangepicker/daterangepicker.css" >
    <link rel="stylesheet" href="assets/css/backend.css" >
    <title>Fresns 管理中心</title>
  </head>
  <body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark fresns-navbar">
      <a class="navbar-brand" href="#"><img src="assets/images/logo.png" height="30" alt="Fresns"></a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav mr-auto">
          <li class="nav-item"><a class="nav-link" href="index.html">仪表盘</a></li>
          <li class="nav-item"><a class="nav-link" href="system-language.html">系统</a></li>
          <li class="nav-item active"><a class="nav-link" href="operating-user.html">运营</a></li>
          <li class="nav-item"><a class="nav-link" href="themes.html">主题</a></li>
          <li class="nav-item"><a class="nav-link" href="plugins.html">插件</a></li>
          <li class="nav-item"><a class="nav-link" href="clients.html">客户端</a></li>
          <li class="nav-item"><a class="nav-link" href="store.html">应用市场</a></li>
        </ul>
        <span class="navbar-text">admin <a href="#">[退出]</a> <a href="https://fresns.cn" target="_blank">站点首页</a></span>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-xl-2 fresns-sidebar">
          <h3 class="d-none d-sm-block">运营</h3>
          <button class="btn btn-primary btn-block d-block d-sm-none" type="button" data-toggle="collapse" data-target="#sidebarNav" aria-controls="sidebarNav" aria-expanded="true">
            <i class="fas fa-list-ul"></i> 运营
          </button>
          <div class="collapse show" id="sidebarNav">
            <ul class="nav flex-column">
              <li class="nav-item"><a class="nav-link" href="operating-user.html"><i class="fas fa-users"></i> 用户配置</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-rename.html"><i class="far fa-keyboard"></i> 命名配置</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-interactive.html"><i class="far fa-list-alt"></i> 互动配置</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-emoji.html"><i class="far fa-smile-beam"></i> 表情配置</a></li>
              <li class="nav-item"><a class="nav-link active" href="operating-publish-post.html"><i class="far fa-edit"></i> 发表配置</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-filter.html"><i class="fas fa-spell-check"></i> 过滤配置</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-role.html"><i class="far fas fa-user-tag"></i> 用户角色</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-group.html"><i class="fas fa-columns"></i> 内容小组</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-expand.html"><i class="fab fa-codepen"></i> 扩展管理</a></li>
            </ul>
            <div class="fresns-copyright">
              <p>Powered by Fresns</p>
            </div>
          </div>
        </div>

        <div class="col-sm-9 col-xl-10 fresns-content">
          <h3>发表配置 <a href="operating-publish-post.html" class="ml-4 pl-4 text-secondary border-left">发表帖子</a> <a href="operating-publish-comment.html" class="ml-3 text-primary">发表评论</a></h3>
          <!-- Setting Start -->
          <form>

            <!-- Posts Setting -->
            <label class="item-title">发表评论要求：</label>
            <div class="form-group row">
              <div class="col-md-6 col-sm-8">
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="email_verify">
                  <label class="custom-control-label" for="email_verify">已绑定邮箱</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="phone_verify">
                  <label class="custom-control-label" for="phone_verify">已绑定手机号</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="identity_verify">
                  <label class="custom-control-label" for="identity_verify">已实名认证</label>
                </div>
              </div>
              <label class="col-md-6 col-sm-4 col-form-label">设置用户必须满足所选条件才能发表内容</label>
            </div>

            <!-- Posts Setting -->
            <label class="item-title">发表评论开放时间：</label>
            <div class="form-group row">
              <div class="col-sm-6">
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="content_time_false" name="content_post_timelimit" value="true" class="custom-control-input" data-toggle="collapse" data-target="#content_time_collapse.show" aria-expanded="false" aria-controls="collapse" checked>
                  <label class="custom-control-label" for="content_time_false">全天</label>
                </div>
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="content_time_true" name="content_post_timelimit" value="false" class="custom-control-input" data-toggle="collapse" data-target="#content_time_collapse:not(.show)" aria-expanded="false" aria-controls="collapse">
                  <label class="custom-control-label" for="content_time_true">规定时间</label>
                </div>
              </div>
              <label class="col-sm-6 col-form-label">规定可以发表评论的时间，时区以<a href="system-site.html">站点设置</a>的默认时区为主</label>
              <!-- content_time -->
              <div class="col-md-6 collapse" id="content_time_collapse">
                <!-- input group -->
                <div class="input-group mb-3">
                  <div class="input-group-prepend">
                    <span class="input-group-text">限制类型</span>
                  </div>
                  <select class="custom-select" id="content_post_rule">
                    <option value="date" selected>指定日期全天限制</option>
                    <option value="datetime">指定某个时间段限制</option>
                    <option value="time">指定每天的某个时间段限制</option>
                  </select>
                </div>
                <!-- content_post_rule input group -->
                <div id="date">
                  <div class="input-group mb-3">
                    <div class="input-group-prepend">
                      <span class="input-group-text">日期范围</span>
                    </div>
                    <input type="text" class="form-control" name="datefilter">
                  </div>
                </div>
                <div id="datetime">
                  <div class="input-group mb-3">
                    <div class="input-group-prepend">
                      <span class="input-group-text">开始时间</span>
                    </div>
                    <input type="datetime-local" class="form-control">
                  </div>
                  <div class="input-group mb-3">
                    <div class="input-group-prepend">
                      <span class="input-group-text">结束时间</span>
                    </div>
                    <input type="datetime-local" class="form-control">
                  </div>
                </div>
                <div id="time">
                  <div class="input-group mb-3">
                    <div class="input-group-prepend">
                      <span class="input-group-text">时间范围</span>
                    </div>
                    <input type="time" class="form-control">
                    <input type="time" class="form-control">
                  </div>
                </div>
                <!-- content_post_rule input group end -->
                <!-- input group -->
                <div class="input-group mb-3">
                  <div class="input-group-prepend">
                    <span class="input-group-text">限制规则</span>
                  </div>
                  <div class="form-control">
                    <div class="custom-control custom-radio custom-control-inline">
                      <input type="radio" id="content_post_rule_false" name="content_post_rule" value="false" class="custom-control-input">
                      <label class="custom-control-label" for="content_post_rule_false">禁止发表</label>
                    </div>
                    <div class="custom-control custom-radio custom-control-inline">
                      <input type="radio" id="content_post_rule_true" name="content_post_rule" value="true" class="custom-control-input">
                      <label class="custom-control-label" for="content_post_rule_true">可以发表，但是需要审核</label>
                    </div>
                  </div>
                </div>
                <!-- input group -->
                <div class="input-group mb-3">
                  <div class="input-group-prepend">
                    <span class="input-group-text">限制提示</span>
                  </div>
                  <input type="text" class="form-control" id="editor_title_limit" value="禁止发表或者发表需要审核时，反馈给用户的提示语" data-toggle="modal" data-target="#multi-language">
                </div>
              </div>
              <!-- content_time -->
            </div>

            <!-- Posts Setting -->
            <label class="item-title">评论编辑权限：</label>
            <div class="form-group row">
              <div class="col-sm-6">
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="content_edit_false" name="content_edit" value="false" class="custom-control-input" data-toggle="collapse" data-target="#content_edit_collapse.show" aria-expanded="false" aria-controls="collapse" checked>
                  <label class="custom-control-label" for="content_edit_false">不可编辑</label>
                </div>
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="content_edit_true" name="content_edit" value="true" class="custom-control-input" data-toggle="collapse" data-target="#content_edit_collapse:not(.show)" aria-expanded="false" aria-controls="collapse">
                  <label class="custom-control-label" for="content_edit_true">可以编辑</label>
                </div>
              </div>
              <label class="col-sm-6 col-form-label">评论发表后是否可以编辑</label>
              <!-- content_edit -->
              <div class="col-md-6 collapse" id="content_edit_collapse">
                <!-- input group -->
                <div class="input-group mb-3">
                  <div class="input-group-prepend">
                    <span class="input-group-text">多长时间内可以编辑</span>
                  </div>
                  <input type="number" class="form-control" id="content_edit_timelimit" value="10">
                  <div class="input-group-append">
                    <span class="input-group-text" id="basic-addon2">分钟以内</span>
                  </div>
                </div>
                <!-- input group -->
                <div class="input-group mb-3">
                  <div class="input-group-prepend">
                    <span class="input-group-text">评论置顶后编辑权限</span>
                  </div>
                  <div class="form-control">
                    <div class="custom-control custom-radio custom-control-inline">
                      <input type="radio" id="content_edit_sticky_false" name="content_edit_sticky" value="false" class="custom-control-input" checked>
                      <label class="custom-control-label" for="content_edit_sticky_false">不可编辑</label>
                    </div>
                    <div class="custom-control custom-radio custom-control-inline">
                      <input type="radio" id="content_edit_sticky_true" name="content_edit_sticky" value="true" class="custom-control-input">
                      <label class="custom-control-label" for="content_edit_sticky_true">可以编辑</label>
                    </div>
                  </div>
                </div>
              </div>
              <!-- content_edit -->
            </div>

            <!-- Editor Config -->
            <label class="item-title">编辑器选择：</label>
            <div class="form-group row">
              <!-- input group -->
              <div class="col-sm-6">
                <div class="input-group mb-3">
                  <select class="custom-select" id="post_editor">
                    <option value="default" selected>默认编辑器</option>
                    <option value="xxw">xxw插件</option>
                    <option value="xxq">xxq插件</option>
                    <option value="xxx">xxx插件</option>
                  </select>
                </div>
              </div>
              <label class="col-sm-6 col-form-label">发表评论的编辑器</label>
            </div>

            <!-- Editor Setting -->
            <label class="item-title">评论编辑器功能开启：</label>
            <div class="form-group row no-gutters">
              <ul class="list-group">
                <li class="list-group-item">
                  <div class="custom-control custom-checkbox custom-control-inline">
                    <input type="checkbox" class="custom-control-input" id="editor_emoji" checked>
                    <label class="custom-control-label" for="editor_emoji">表情</label>
                  </div>
                  <div class="custom-control custom-checkbox custom-control-inline">
                    <input type="checkbox" class="custom-control-input" id="editor_image">
                    <label class="custom-control-label" for="editor_image">图片</label>
                  </div>
                  <div class="custom-control custom-checkbox custom-control-inline">
                    <input type="checkbox" class="custom-control-input" id="editor_video">
                    <label class="custom-control-label" for="editor_video">视频</label>
                  </div>
                  <div class="custom-control custom-checkbox custom-control-inline">
                    <input type="checkbox" class="custom-control-input" id="editor_audio">
                    <label class="custom-control-label" for="editor_audio">音频</label>
                  </div>
                  <div class="custom-control custom-checkbox custom-control-inline">
                    <input type="checkbox" class="custom-control-input" id="editor_file">
                    <label class="custom-control-label" for="editor_file">文档</label>
                  </div>
                  <div class="custom-control custom-checkbox custom-control-inline">
                    <input type="checkbox" class="custom-control-input" id="editor_at" checked>
                    <label class="custom-control-label" for="editor_at">艾特</label>
                  </div>
                  <div class="custom-control custom-checkbox custom-control-inline">
                    <input type="checkbox" class="custom-control-input" id="editor_topic" checked>
                    <label class="custom-control-label" for="editor_topic">话题</label>
                  </div>
                  <div class="custom-control custom-checkbox custom-control-inline">
                    <input type="checkbox" class="custom-control-input" id="editor_expand">
                    <label class="custom-control-label" for="editor_expand">扩展功能</label>
                  </div>
                </li>
                <li class="list-group-item">
                  <div class="custom-control custom-checkbox custom-control-inline">
                    <input type="checkbox" class="custom-control-input" id="editor_lbs">
                    <label class="custom-control-label" for="editor_lbs">定位</label>
                  </div>
                  <div class="custom-control custom-checkbox custom-control-inline">
                    <input type="checkbox" class="custom-control-input" id="editor_anonymous">
                    <label class="custom-control-label" for="editor_anonymous">匿名</label>
                  </div>
                </li>
              </ul>
            </div>

            <!-- Editor Config -->
            <label class="item-title">评论编辑器功能配置：</label>
            <div class="form-group row">
              <!-- input group -->
              <div class="col-sm-6 mb-3">
                <div class="input-group">
                  <div class="input-group-prepend">
                    <span class="input-group-text" style="width:140px;">评论字数限制</span>
                  </div>
                  <input type="number" class="form-control" id="editor_post_word_count" value="1000">
                  <div class="input-group-append">
                    <span class="input-group-text">字符</span>
                  </div>
                </div>
              </div>
              <label class="col-sm-6 col-form-label">帖子内容字数不得超过设置数，最小不低于 140 个字符。</label>
              <!-- input group -->
              <div class="col-sm-6 mb-3">
                <div class="input-group">
                  <div class="input-group-prepend">
                    <span class="input-group-text" style="width:140px;">评论摘要字数</span>
                  </div>
                  <input type="number" class="form-control" id="editor_post_word_count" value="280">
                  <div class="input-group-append">
                    <span class="input-group-text">字符</span>
                  </div>
                </div>
              </div>
              <label class="col-sm-6 col-form-label">超长评论内容摘要字数</label>
            </div>

            <!-- Form Submit -->
            <button type="submit" class="btn btn-primary">保存</button>
          </form>
          <!-- Setting End -->
        </div>
      </div>
    </div>

    <!-- Modal -->
    <div class="modal fade" id="multi-language" tabindex="-1" role="dialog" aria-labelledby="multi-language" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">多语言名称</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="modal-body">
            <textarea class="form-control" id="addons_name" rows="3">"zh-Hans": "简体中文"
"zh-Hant": "繁體中文"
"en": "English"</textarea>
            <small class="form-text text-muted">多语言需客户端支持，否则无效。<br>一行一个，第一行为默认语言。<br>多语言“变量名”以 <a href="https://www.w3schools.com/tags/ref_language_codes.asp" target="_blank">HTML ISO Language Code</a> 为标准。</small>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-success">确认</button>
          </div>
        </div>
      </div>
    </div>

    <!-- JavaScript -->
    <script src="assets/js/jquery-3.5.1.slim.min.js"></script>
    <script src="assets/js/bootstrap.bundle.min.js"></script>
    <script src="assets/plugins/overlayscrollbars/js/jquery.overlayScrollbars.min.js"></script>
    <script src="assets/plugins/moment/moment.min.js"></script>
    <script src="assets/plugins/moment/moment-with-locales.min.js"></script>
    <script src="assets/plugins/daterangepicker/daterangepicker.js"></script>
    <script src="assets/js/backend.js"></script>
  </body>
</html>